#ifndef WPrincipal_h
#define WPrincipal_h



#include <iostream>
#include <QWidget>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QCheckBox>
#include <QRadioButton>
#include <QGroupBox>
#include <QPushButton>
#include <QLineEdit>
#include <QFileDialog>
#include <QString>
#include <QMessageBox>
#include <QProcess>



class WPrincipal : public virtual QWidget
{
  Q_OBJECT;
 private :
  //Les conteneurs et widgets associés :
  QVBoxLayout* layout_principal;

  QWidget* wOptions;
  QVBoxLayout* layout_compress;
     QCheckBox* decompresser;
     QGroupBox* compresser;
        QVBoxLayout* layout_choix_algo;
	// QRadioButton* rb_lz77; marche pas
	   QRadioButton* rb_lz78;
	   QRadioButton* rb_huffman;
	   QRadioButton* rb_bzip;
	   QRadioButton* rb_deflate;


  QWidget* wFichiers;
  QVBoxLayout* layout_fichiers;
     QGroupBox* entree;
     QHBoxLayout* layout_entree;
        QLineEdit* nom_fic_entr;
        QPushButton* pb_fichier_entree;

     QGroupBox* sortie;
     QHBoxLayout* layout_sortie;
        QLineEdit* nom_fic_sort;
        QPushButton* pb_fichier_sortie;

     QPushButton* pb_validation;

 public :
  
  WPrincipal();
     
 public slots :
  
  void changerEntree();
  void changerSortie();
  void compresser_checked(bool);
  void decompresser_checked(bool);
  void valider();

};


#endif
